<php>
    $counti = 0; 
</php>
<volist name="good_cates" id="vo">
    <eq name="vo.parent" value="0">
        <php>
            $counti ++; 
        </php>
    </eq>
</volist>
<div class="cui-box1 mb">
    <div class="title">
        <h2 class="tith">商品分类</h2>
    </div>
    <!-- end title-->
    <div class="cbox">
        <div class="allsort" id="left_hovemenu">
            <php>
                $zindex = 100 ;
            </php>
            <volist name="good_cates" id="vo">
                <eq name="vo.parent" value="0">
                    <php>
                        $zindex = $zindex - 1;
						$nowcount = $zindex + $counti;
                    </php>
                    <div class="sdbox
					<eq name="nowcount" value="100">last</eq>
					" style="z-index:{$zindex};">
                        <a href="{:U('Good/index?cate='.$vo['enname'])}" class="item"><strong>{$vo.name}</strong>{$vo.keyword}</a>
                        <notempty name="vo.childs">
                            <s>
                            </s>
                            <div class="coldetail" style="display:none;">
                                <div class="colbox">
                                    <ul class="select-search clearfix">
                                        <notempty name="vo.childs">
                                            <volist name="vo.childs" id="cvo">
                                                <li>
                                                    <a href="{:U('Good/index?cate='.$good_cates[$cvo]['enname'])}">{$good_cates[$cvo]['name']}</a>
                                                </li>
                                            </volist>
                                        </notempty>
                                    </ul>
                                </div>
                                <!-- colbox end-->
                            </div>
                            <!-- coldetail end-->
                        </notempty>
                    </div>
                </eq>
            </volist>
            <!-- sdbox end-->
        </div>
        <!-- allsort end-->
        <div class="menu-more">
            <a href="{:U('Good/tejia?is_promote=1&oby=created&okey=desc')}">特价商品区&gt;&gt;</a>
        </div>
    </div>
    <!-- end cbox-->
</div>
<!-- end cui-box-->
<script>
    $(function(){
        $('.sdbox').each(function(i){
            $(this).hover(function(){
                if ($(this).find('.coldetail').length > 0) {
                    $(this).find('.item').addClass("this_1");
                    $(this).find('.coldetail').show();
                }
            }, function(){
                if ($(this).find('.coldetail').length > 0) {
                    $(this).find('.item').removeClass("this_1");
                    $(this).find('.coldetail').hide();
                }
            });
        });
    });
</script>
